document ready without jquery

50

javascript wait for document load -

document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});

document ready without jquery -

document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});

Comments

Submit
0 Comments